package com.wdz.fegin;

import com.wdz.entity.ApiUser;
import com.wdz.http.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "article")
public interface FeginAdminService {

    @PostMapping("/getApiUser")
    Response getApiUser(@RequestParam("username") String username);

    /**
     * 获取用户详细信息
     * @param username
     * @return
     */
    @PostMapping("/getUserInfo")
    Response getUserInfo(@RequestParam("username") String username);

    /**
     * 校验用户
     */
    @PostMapping("/checkUser")
    Response checkUser(@RequestParam("username")String username,@RequestParam("password")String password);
}
